package com.link.base.base.user.dao.mybatis.mapper;

import com.link.base.base.user.model.User;
import com.link.core.basic.dao.mapper.BasicMapper;

/**
 * @author unknown
 * @date unknown
 * @comments 用户登录
 */
public interface LoginMapper extends BasicMapper<User> {

    /**
     * 更新最后登录时间
     *
     * @param record 用户信息
     * @throws Exception
     */
    public void lastLoginDateUpdate(User record) throws Exception;


    /**
     * 根据用户名查询用户信息
     *
     * @param record
     * @return 用户信息
     * @throws Exception
     */
    public User queryByUsername(User record) throws Exception;

    User queryByUserPhone(User example) throws Exception;
}
